import java.util.Random;
import java.util.Scanner;

public class Guess {
    public static void main(String[] args) {
        Random random = new Random();
        int number = random.nextInt(101);
        ///int number = 20;
        System.out.println("那么现在开始猜数字啦！！！");
        int y = 0;
            for (int i=1 ;i>=0;i++){
                Scanner scanner = new Scanner(System.in);
                System.out.println("请输入你猜的数字：");
                int a = scanner.nextInt();
                if ((i==1)&&(a==number)){
                    System.out.println("你真厉害，一次就猜对了！");
                    break;
                } else if ((i <= 4) && (1 < i) && (number==a)){
                    System.out.println("你很聪明，猜对了！");
                    break;
                }else if ((i>=5)){
                    System.out.println("笨蛋，你猜那么多次！？");
                }
            }
        }
    }


